package com.zm.product.model;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import lombok.Data;
import org.springframework.stereotype.Component;

import java.util.Date;

@TableName("product")
@Component
@Data
public class Product extends Model<Product> {
    @TableId(type = IdType.AUTO)
    private Long id;
    private String pName;
    private Long price;
    private Long num;
    private Date addTime;
    private Date updateTime;
}
